/* 1. 首先在 CSS 顶部添加 Noto Serif SC 字体加载（通过 Google Fonts，确保兼容性） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500&display=swap');

/* 2. 输入框字体样式：Noto Serif SC */
.custom-input {
  font-family: 'Noto Serif SC', serif !important; /* !important 确保覆盖 AntD 默认字体 */
  font-weight: 400; /* 字体粗细：常规（可根据需求改为 500 加粗） */
  font-size: 15px !important; /* 保持与输入框原有尺寸一致 */
}

/* 3. 输入框占位符（placeholder）也应用相同字体 */
.custom-input::placeholder {
  font-family: 'Noto Serif SC', serif !important;
  color: #bcaaa4 !important; /* 占位符颜色，与原有风格统一 */
  font-weight: 400;
}

/* 4. 确保输入框在所有状态下（聚焦、hover）字体不变 */
.custom-input:focus,
.custom-input:hover {
  font-family: 'Noto Serif SC', serif !important;
}





:where(.css-dev-only-do-not-override-kbg4zp).ant-form {
  padding: 10px 15px 0 15px;
}

/* 页面基础样式 */
.login-page {
  min-height: 100vh;
  background-color: #f7f2ed;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

/* 背景图案 */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238d6e63' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 装饰圆圈 */
.decor-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.decor-circle.top {
  top: 15%;
  right: -70px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #b8860b, #cd853f);
  opacity: 0.1;
}

.decor-circle.bottom {
  bottom: 10%;
  left: -50px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #8b4513, #a0522d);
  opacity: 0.08;
}

/* 容器 */
.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* 品牌区域 */
.brand-section {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  position: relative;
}

.logo-inner {
  width: 100%;
  height: 100%;
  background-color: rgb(93 64 55 / var(--tw-bg-opacity, 1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
  color: white;
  font-size: 40px;
  position: relative;
  z-index: 1;
}

.logo-inner::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #713b15, #a0522d);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.brand-section h2.ant-typography,
.ant-typography-h2,
.ant-typography-h2>textarea,
.ant-typography h2 {
  font-size: 26px;
  color: #5d4037;
  font-weight: 600;
  margin: 0 0 8px;
}

.brand-slogan {
  font-size: 14px;
  color: #8d6e63;
  margin: 0;
  font-family: 'Noto Serif SC', serif;
}

/* 登录卡片 */
.login-card {
  background-color: white !important;
  border-radius: 18px !important;
  padding: 20px 0 !important;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1) !important;
  position: relative;
  overflow: hidden;
}


/* 表单样式 */
.login-form {
  width: 100%;
}

.form-item {
  margin-bottom: 20px !important;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 输入框样式 */
.login-input {
  height: 50px !important;
  border-radius: 10px !important;
  border-color: rgb(215 204 200 / 0.5);
  background-color: rgb(245 240 235 / var(--tw-bg-opacity, 1));
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  font-size: 15px !important;
  opacity: 1;
  transform: translateY(0);
}

:where(.css-dev-only-do-not-override-1v28nim).ant-input-outlined:hover {
  border-color: #5d4037;
  background-color: rgb(245 240 235 / var(--tw-bg-opacity, 1));
  box-shadow: 0 0 0 2px rgba(127, 77, 42, 0.1);
}

.login-input:focus {
  border-color: #8b4513 !important;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1) !important;
}

/* 输入框图标 */
.input-icon {
  color: #8b4513 !important;
  font-size: 18px !important;
  left: 14px !important;
}

/* 密码切换图标 */
.toggle-icon {
  color: #bcaaa4 !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

.toggle-icon:hover {
  color: #8b4513 !important;
}

/* 登录按钮 */
.login-button {
  height: 52px !important;
  border-radius: 10px !important;
  background-color: rgb(93 64 55 / var(--tw-bg-opacity, 1));
  border-color: transparent !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  /* 新增：按钮默认可见（动画由 JS 控制） */
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.login-button:hover {
  background: linear-gradient(135deg, #793c11, #8f4825) !important;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2) !important;
}

/* 按钮点击波纹效果 */
.login-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.login-button:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* 底部链接（按需启用） */
.login-footer {
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.footer-link {
  color: #8b4513;
  text-decoration: none;
  margin: 0 8px;
}

.footer-link:hover {
  text-decoration: underline;
}

.divider {
  color: #d7ccc8;
}

/* 动画显示类 */
.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.brand-name {
  font-size: 24px;
  font-family: 'Noto Serif SC', serif;
}

/* 呼吸动画 */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.3;
  }
}

/* 适配小屏幕 */
@media (max-width: 320px) {
  .brand-name {
    font-size: 24px;
    font-family: 'Noto Serif SC', serif;
  }

  .login-card {
    padding: 25px 20px !important;
  }
}